package com.tmt.spring.validation;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 注册字段描述对象
 */
@Getter
@Setter
public class RegFieldDescriptor implements Serializable {

	/** 字段的Label*/
	private String label;

	/** 字段名称 */
	private String fieldName;

	/** 输入提示 */
	private String fieldHint;

	/**
	 * 字段的值
	 */
	private Object value;

	/**
	 * 是否显示字段
	 */
	private boolean display = true;

	/**
	 * 用于控制界面上是否显示Label信息
	 */
	private boolean displayLabel = true;

	public RegFieldDescriptor(String lable, String fieldName, String fieldHint,
							  Object value, boolean display, boolean displayLabel){
		this.label = lable;
		this.fieldName = fieldName;
		this.fieldHint = fieldHint;
		this.value = value;
		this.display = display;
		this.displayLabel = displayLabel;
	}

}
